Fix builddir != srcdir
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 28 Feb 2016 12:21:26 +0000 (12:21 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 28 Feb 2016 12:21:26 +0000 (12:21 +0000)
The gdkprivate-wayland.h header file is included from the top-level gdk
directory; this means that all included files referenced in the header
must be relative to the `gdk` directory, otherwise the build will fail
when the build directory is not equal to the source directory.

This commit fixes a build failure under continuous:

In file included from ../../gdk/gdkdisplaymanager.c:60:0:
../../gdk/wayland/gdkprivate-wayland.h:40:51: fatal error:
gtk-primary-selection-client-protocol.h: No such file or directory
 #include "gtk-primary-selection-client-protocol.h"
                                                   ^
compilation terminated.
Makefile:1155: recipe for target 'libgdk_3_la-gdkdisplaymanager.lo' failed
make[4]: *** [libgdk_3_la-gdkdisplaymanager.lo] Error 1

gdk/wayland/gdkprivate-wayland.h

index a8df4dd1a0b57f4275e698295f01244db4632e32..a60c4c3bd231b39e7833321162ca7339e9af3989 100644 (file)
@@ -37,7 +37,7 @@
 #include <xkbcommon/xkbcommon.h>
 
 #include "gdkinternals.h"
-#include "gtk-primary-selection-client-protocol.h"
+#include "wayland/gtk-primary-selection-client-protocol.h"
 
 #include "config.h"